<?php
ob_start();?><?php
include("config.php");
require_once("auth.php");

$pid=$_POST['ddlProductId'];
$oid=$_POST['ddlOrderId'];
$price=$_POST['txtPrice'];
$qty=$_POST['txtQuantity'];
$size=$_POST['txtSize'];
$tt=$_POST['txtTotal'];
$data=mysql_query("insert into orderdetails values('$oid','$pid','$price','$qty','$tt','')");
if($data)
{
header("location: displayorderdeatils.php?added=added");
}
else
{
echo mysql_error();
}
?>

<?php ob_flush();
?>